package main

import (
	"crypto/md5"
	"encoding/hex"
	"io"
	"mxshop_srvs/user_srv/global"
	"mxshop_srvs/user_srv/initialize"
	"mxshop_srvs/user_srv/model"
)

//生成md5
func genMd5(code string) string {
	Md5 := md5.New()
	_, _ = io.WriteString(Md5, code)
	return hex.EncodeToString(Md5.Sum(nil))
}

func main() {
	initialize.InitDB()
	_ = global.DB.AutoMigrate(&model.User{})
}
